package com.bdqn.service;

import com.bdqn.mapper.RecordMapper;
import com.bdqn.pojo.StorageRecord;
import com.bdqn.pojo.SysUser;

import java.util.Date;

public class RecordServiceImpl implements RecordService {
    private RecordMapper recordMapper;

    @Override
    public boolean add(StorageRecord storageRecord) {
        storageRecord.setCreatedTime(new Date());
        int result = recordMapper.add(storageRecord);
        return (result == 1);
    }
}
